// 变形
import { diagonal, paritySort, misplaced, intervalSort, neighborSwap, shuffle } from './arraySort.js'

let transformFnMap = {
    none: (e) => e,
    diagonal, paritySort, misplaced, intervalSort, neighborSwap, shuffle
}
export const _transform = (points, transform) => {
    return transformFnMap[transform] ? transformFnMap[transform](points) : points
}
export const transformTypes = Object.keys(transformFnMap)